<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>04_修改元素的显示模式</title>
    <style>
       div {
        width: 200px;
        height: 200px;
        font-size: 40px;
        display: inline-block;
       } 
       #d1 {
        background-color: skyblue;
       }
       #d2 {
        background-color: orange;
       }
       #d3 {
        background-color: green;
       }
       a {
        font-size: 20px;
        display: block;
        width: 200px;
        height: 200px;
       }
       #s1 {
        background-color: skyblue;
       }
       #s2 {
        background-color: orange;
       }
       #s3 {
        background-color: green;
       }
    </style>
</head>
<body>
    <div id="d1">nihao1</div>
    <div id="d2">nihao3</div>
    <div id="d3">nihao2</div>
    <hr>
    <a id="s1" href="https://www.baidu.com">去百度</a>
    <a id="s2" href="https://www.jd.com">去京东</a>
    <a id="s3" href="https://www.toutiao.com">去头条</a>
</body>
</html>